package cn.wolfcode.luowowo2.article.mapper;

import cn.wolfcode.luowowo2.article.domain.Region;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RegionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Region record);

    Region selectByPrimaryKey(Long id);

    List<Region> selectAll();

    int updateByPrimaryKey(Region record);

    List<Region> selectForList();

    void updateHotValue(@Param("hot") Boolean hot, @Param("id") Long id);

    List<Region> selectHotRegion();
}